<?php

/**
 * Nette Framework.
 *
 * Copyright (c) 2004, 2010 David Grudl (http://davidgrudl.com)
 *
 * This source file is subject to the "Nette license", and/or
 * GPL license. For more information please see http://nette.org
 */



/**
 * Check and reset PHP configuration.
 */
@set_magic_quotes_runtime(FALSE); // @ - deprecated since PHP 5.3.0



/**
 * Load and configure Nette Framework
 */
define('NETTE', TRUE);
define('NETTE_DIR', __DIR__);
define('NETTE_VERSION_ID', 906); // v0.9.6
define('NETTE_PACKAGE', '5.3');



require_once __DIR__ . '/Utils/shortcuts.php';
require_once __DIR__ . '/Utils/exceptions.php';
require_once __DIR__ . '/Utils/Framework.php';
require_once __DIR__ . '/Utils/Object.php';
require_once __DIR__ . '/Utils/ObjectMixin.php';
require_once __DIR__ . '/Utils/Callback.php';
require_once __DIR__ . '/Loaders/LimitedScope.php';
require_once __DIR__ . '/Loaders/AutoLoader.php';
require_once __DIR__ . '/Loaders/NetteLoader.php';

// load in memory cache for robot loader
require_once LIBS_DIR . '/Nette/Caching/ICacheStorage.php';
require_once LIBS_DIR . '/Albireo/Caching/APCStorage.php';
require_once LIBS_DIR . '/Albireo/Caching/WinCacheStorage.php';
require_once LIBS_DIR . '/Albireo/Caching/CacheFactory.php';


Nette\Loaders\NetteLoader::getInstance()->register();
